package org.turbobytes.unikey.util.db.metadata;

/**
 * Represents the current Db in use
 *
 * @author Ganeshji Marwaha
 * @since Aug 7, 2010
 */
public enum DbType {
  MYSQL("mysql", new MySqlMetadata()),
  ORACLE("oracle", new OracleMetadata()),
  UNKNOWN("unknown", new UnknownMetadata());

  private String name;
  private Metadata metadata;

  public String getName() {
    return name;
  }
  public Metadata getMetadata() {
    return metadata;
  }

  private DbType(String name, Metadata metadata) {
    this.name = name;
    this.metadata = metadata;
  }

}
